# $Header: /compromis/home/xmlschemata/cvs/books/relaxng/xhtml/Makefile,v 1.21 2003/07/16 11:10:23 vdv Exp $
#
XSLTPROC	= libxslt
HIDENDEPS	=	
CLASSPATH = 
XHTML			= RngBook.xhtml RngBookPreface.xhtml RngBookPerspective.xhtml RngBookPatterns.xhtml \
						RngBookFirstSchema.xhtml RngBookNonXmlSyntax.xhtml\
						RngBookFlat.xhtml RngBookMorePatterns.xhtml \
						RngBookTextPatterns.xhtml RngBookTypeLibraries.xhtml \
						RngBookWxsRegExp.xhtml \
						RngBookBuildingBlocks.xhtml RngNamespaces.xhtml \
						RngBookExtensible.xhtml RngBookAnnotations.xhtml \
						RngBookGeneration.xhtml RngBookRestrictions.xhtml \
						RngBookElements.xhtml RngBookCompact.xhtml \
						RngBookWxsDatatypes.xhtml RngBookAssignment.xhtml \
						RngBookGlossary.xhtml RngBookDsdl.xhtml
						
HTML			= ../page1.html ../page2.html ../page3.html ../RngBookPreface.html \
					  	../RngBookPerspective.html ../RngBookPatterns.html \
						../RngBookFirstSchema.html ../RngBookNonXmlSyntax.html\
						../RngBookFlat.html ../RngBookMorePatterns.html\
						../RngBookTextPatterns.html ..\RngBookTypeLibraries.html \
						../RngBookWxsRegExp.html \
						../RngBookBuildingBlocks.html ../RngNamespaces.html \
						../RngBookExtensible.html ../RngBookAnnotations.html \
						../RngBookWxsDatatypes.html ../RngBookElements.html \
						../RngBookCompact.html  \
						../RngBookRestrictions.html ../RngBookAssignment.html \
						../RngBookGlossary.html ../RngBookDsdl.html

						
DB				= ../docbook/ch00.xml ../docbook/ch01.xml ../docbook/ch02.xml ../docbook/ch03.xml \
						../docbook/ch04.xml ../docbook/ch05.xml \
						../docbook/ch06.xml ../docbook/ch07.xml \
						../docbook/ch08.xml ../docbook/ch09.xml ../docbook/ch10.xml \
						../docbook/ch11.xml ../docbook/ch12.xml \
						../docbook/ch13.xml ../docbook/ch14.xml \
						../docbook/ch15.xml                     \
						../docbook/ch16.xml ../docbook/ch17.xml \
						../docbook/ch18.xml ../docbook/ch19.xml ../docbook/ch20.xml \
						../docbook/ch21.xml

all:	html docbook zip
zip:  ../docbook/rng.zip

docbook: $(DB)
html:	$(HTML) 

$(HTML): $(XHTML) slides.xml 2slides.xsl 2single.xsl layout.xml ../docbook/ch09.xml ../docbook/ch17.xml ../docbook/ch18.xml ../docbook/ch19.xml ../docbook/ch20.xml
	xslt -p $(XSLTPROC) slides.xml 2slides.xsl

../docbook/ch00.xml:  ../RngBookPreface.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookPreface.html html2db.xsl ../docbook/ch00.xml

../docbook/ch01.xml:  ../RngBookPerspective.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookPerspective.html html2db.xsl ../docbook/ch01.xml

../docbook/ch02.xml:  ../RngBookPatterns.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookPatterns.html html2db.xsl ../docbook/ch02.xml

../docbook/ch03.xml:  ../RngBookFirstSchema.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookFirstSchema.html html2db.xsl ../docbook/ch03.xml

../docbook/ch04.xml:  ../RngBookNonXmlSyntax.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookNonXmlSyntax.html html2db.xsl ../docbook/ch04.xml

../docbook/ch05.xml:  ../RngBookFlat.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookFlat.html html2db.xsl ../docbook/ch05.xml

../docbook/ch06.xml:  ../RngBookMorePatterns.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookMorePatterns.html html2db.xsl ../docbook/ch06.xml

../docbook/ch07.xml:  ../RngBookTextPatterns.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookTextPatterns.html html2db.xsl ../docbook/ch07.xml

../docbook/ch08.xml:  ../RngBookTypeLibraries.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookTypeLibraries.html html2db.xsl ../docbook/ch08.xml

../docbook/ch09.xml:  ../regexp/regexp.xml
	cp ../regexp/regexp.xml ../docbook/ch09.xml

../docbook/ch10.xml:  ../RngBookBuildingBlocks.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookBuildingBlocks.html html2db.xsl ../docbook/ch10.xml

../docbook/ch11.xml:  ../RngNamespaces.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngNamespaces.html html2db.xsl ../docbook/ch11.xml

../docbook/ch12.xml:  ../RngBookExtensible.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookExtensible.html html2db.xsl ../docbook/ch12.xml

../docbook/ch13.xml:  ../RngBookAnnotations.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookAnnotations.html html2db.xsl ../docbook/ch13.xml

../docbook/ch14.xml:  ../RngBookGeneration.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookGeneration.html html2db.xsl ../docbook/ch14.xml

../docbook/ch15.xml:  ../RngBookRestrictions.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookRestrictions.html html2db.xsl ../docbook/ch15.xml

../docbook/ch16.xml:  ../RngBookAssignment.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookAssignment.html html2db.xsl ../docbook/ch16.xml

../docbook/ch17.xml:  ../reference-manual/elements-meta.xml ../reference-manual/relaxng.rng ../reference-manual/elements.xsl ../reference-manual/elements-finish.xsl
	xslt -p $(XSLTPROC) ../reference-manual/relaxng.rng ../reference-manual/elements.xsl ../reference-manual/elements-temp.xml
	xslt -p $(XSLTPROC) ../reference-manual/elements-temp.xml ../reference-manual/elements-finish.xsl ../reference-manual/elements.xml
	cp ../reference-manual/elements.xml ../docbook/ch17.xml

../docbook/ch18.xml:  ../reference-manual/elements-meta.xml ../reference-manual/compact-summary.rng ../reference-manual/compact.xsl ../reference-manual/elements-finish.xsl ../reference-manual/compact-src.xml
	xslt -p $(XSLTPROC) ../reference-manual/compact-src.xml ../reference-manual/compact.xsl ../reference-manual/compact-temp.xml
	xslt -p $(XSLTPROC) ../reference-manual/compact-temp.xml ../reference-manual/elements-finish.xsl ../reference-manual/compact.xml
	cp ../reference-manual/compact.xml ../docbook/ch18.xml

../docbook/ch19.xml:  ../reference-manual/datatypes-src.xml ../reference-manual/datatypes-finish.xsl
	xslt -p $(XSLTPROC) ../reference-manual/datatypes-src.xml ../reference-manual/datatypes-finish.xsl ../reference-manual/datatypes.xml
	cp ../reference-manual/datatypes.xml ../docbook/ch19.xml

../docbook/ch20.xml:  ../glossary/glossary.xml ../glossary/glossary.xsl
	xslt ../glossary/glossary.xml ../glossary/glossary.xsl ../docbook/ch20.xml

../docbook/ch21.xml:  ../RngBookDsdl.html html2db.xsl
	xslt -p $(XSLTPROC) ../RngBookDsdl.html html2db.xsl ../docbook/ch21.xml


../docbook/rng.zip: $(DB) ../docbook/book.xml ../docbook/dblite.dtd ../docbook/part2.xml
	cd ../docbook; rm rng.zip; cp ../*.png .; zip -r rng.zip *.xml *.dtd *.png docbook41

